/**
 * Copyright (c) 快宝网络 kuaidihelp.com Co., Ltd. All Rights Reserved 禁止外泄以及用于其它的商业用途
 */

import type { Rule } from 'antd/lib/form';

interface valueEnum {
  [name: string]: string;
}
export interface Field {
  name: string;
  node?: string;
  message: string;
  label?: string;
  keys: string[];
  valueEnum?: valueEnum;
  width?: number | 'sm' | 'md' | 'xl' | 'xs' | 'lg';
  addonAfter?: JSX.Element | string;
  rules?: boolean;
  initialValue?: any;
  request?: any;
  fieldProps?: any;
}

export interface Fields {
  id: string;
  label?: string;
  name: string;
  placeorder?: string;
  rules?: Rule[];
  node: string;
  keys: string[];
  valueEnum?: valueEnum;
  width?: number | 'sm' | 'md' | 'xl' | 'xs' | 'lg';
  addonAfter?: JSX.Element | string;
}

export interface RefuseModalProps {
  onReload: () => void;
  task_order_id: string;
}
